package com.css.zfzx.fxpg.modules.economicloss.probability.repository.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 经济损失概率
 *
 * @author andy
 * @date 2020-12-08
 */
@Data
@Entity
@Table(name = "fx_economy_loss_probability_compute")
public class FxEconomyLossProbabilityComputeEntity implements Serializable {

    /**
     * 破坏程度:基本完好 轻微破坏 中等破坏 严重破坏 完全破坏
     */
    @Column(name = "damage_degree")
    private String damageDegree;
    /**
     * 拟合概率计算值(p)
     */
    @Column(name = "fited_probability")
    private Double fitedProbability;
    /**
     * 市
     */
    @Column(name = "city")
    private String city;
    /**
     * 期望
     */
    @Column(name = "expectation")
    private Double expectation;
    /**
     * 概率-修正值
     */
    @Column(name = "corrected_probability")
    private Double correctedProbability;
    /**
     * 区/县
     */
    @Column(name = "area")
    private String area;
    /**
     * 省
     */
    @Column(name = "province")
    private String province;
    /**
     * 是否有效,0:无效,1:有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 期望-修正值
     */
    @Column(name = "corrected_expectation")
    private Double correctedExpectation;
    /**
     * 经济损失-计算（万元）
     */
    @Column(name = "economic_loss")
    private Double economicLoss;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;

}

